{% extends "base.html" %}

{% block title %}{{ _('Not allowed') }}{% endblock %}

{% block main_content %}
<div role="main">
  <section>
    <h1>{{ _('Oops! Not allowed.') }}</h1>
    <p>
      {{ _("You tried to do something that you weren't allowed to.") }}
    </p>
  </section>

  <section>
    {# Taken primarily from Django's CSRF page #}
    {% if no_referer %}
      <p>
        {% trans %}
        You are seeing this message because this HTTPS site requires a
        'Referer header' to be sent by your Web browser, but none was
        sent. This header is required for security reasons, to ensure
        that your browser is not being hijacked by third parties.
        {% endtrans %}
      </p>
      <p>
        {% trans %}
        If you have configured your browser to disable 'Referer' headers,
        please re-enable them, at least for this site, or for HTTPS
        connections, or for 'same-origin' requests.
        {% endtrans %}
      </p>
    {% endif %}

    {% if no_cookie %}
      <p>
        {% trans %}
        You are seeing this message because this site requires a CSRF
        cookie when submitting forms. This cookie is required for
        security reasons, to ensure that your browser is not being
        hijacked by third parties.
        {% endtrans %}
      </p>
      <p>
        If you have configured your browser to disable cookies, please
        re-enable them, at least for this site, or for 'same-origin'
        requests.
      </p>
    {% endif %}
  </section>
</div>
{% endblock %}
